
import os

"""
路径复用性比较高
"""

BASE_DIR = os.path.dirname(os.path.dirname(__file__))

def yaml_file(yaml_name):
    yaml_dir = os.path.join(BASE_DIR, "data")
    yaml_file = os.path.join(yaml_dir, yaml_name)
    return yaml_file




# 封装allure路径
REPORT_DIR = os.path.join(BASE_DIR, "reports")
REPORT_JSON = os.path.join(REPORT_DIR, "allure_json")
REPORT_HTML = os.path.join(REPORT_DIR, "allure_html")


# 封装case存放路径
CASES_FILE = os.path.join(BASE_DIR, "testcases")